{
  "name": "yandex-music-extension",
  "displayName": "YandexMusic",
  "publisher": "acherkashin",
  "icon": "resources/yandex-music-icon.png",
  "repository": {
    "url": "https://github.com/acherkashin/yandex-music-extension"
  },
  "description": "Enjoy listening to YandexMusic right in your favorite code editor",
  "version": "0.15.5",
  "engines": {
    "vscode": "^1.53.0"
  },
  "categories": [
    "Other"
  ],
  "activationEvents": [
    "onStartupFinished"
  ],
  "main": "./out/extension.js",
  "contributes": {
    "configuration": {
      "title": "Yandex Music",
      "properties": {
        "yandexMusic.showElectronApp": {
          "description": "Shows electron app for debugging (restart is required)",
          "type": "boolean",
          "default": false,
          "scope": "application"
        },
        "yandexMusic.rewindTime": {
          "description": "Rewind time (sec)",
          "type": "number",
          "default": 15,
          "minimum": 5,
          "maximum": 60,
          "scope": "application"
        }
      }
    },
    "commands": [
      {
        "command": "yandexMusic.play",
        "category": "Yandex Music",
        "title": "Воспроизвести"
      },
      {
        "command": "yandexMusic.pause",
        "category": "Yandex Music",
        "title": "Пауза"
      },
      {
        "command": "yandexMusic.next",
        "category": "Yandex Music",
        "title": "Следующий трек"
      },
      {
        "command": "yandexMusic.prev",
        "category": "Yandex Music",
        "title": "Предыдущий трек"
      },
      {
        "command": "yandexMusic.rewindForward",
        "category": "Yandex Music",
        "title": "Перемотать вперёд"
      },
      {
        "command": "yandexMusic.rewindBackward",
        "category": "Yandex Music",
        "title": "Перемотать назад"
      },
      {
        "command": "yandexMusic.downloadTrack",
        "category": "Yandex Music",
        "title": "Скачать",
        "icon": "$(cloud-download)"
      },
      {
        "command": "yandexMusic.likeTrack",
        "category": "Yandex Music",
        "title": "Сделайте рекомендации точнее и добавьте трек в раздел \"Моя коллекция\"",
        "icon": "$(heart)"
      },
      {
        "command": "yandexMusic.dislikeTrack",
        "category": "Yandex Music",
        "title": "Вам нравится этот трек, а ещё он добавлен в раздел \"Моя коллекция\"",
        "icon": {
          "light": "resources/light/heart-filled.svg",
          "dark": "resources/dark/heart-filled.svg"
        }
      },
      {
        "command": "yandexMusic.signIn",
        "category": "Yandex Music",
        "title": "Войти",
        "icon": "$(log-in)"
      },
      {
        "command": "yandexMusic.signOut",
        "category": "Yandex Music",
        "title": "Выйти",
        "icon": "$(log-out)"
      },
      {
        "command": "yandexMusic.refresh",
        "category": "Yandex Music",
        "title": "Обновить плейлисты",
        "icon": "$(refresh)"
      },
      {
        "command": "yandexMusic.search",
        "category": "Yandex Music",
        "title": "Поиск",
        "icon": "$(search)"
      },
      {
        "command": "yandexMusic.clearSearchResult",
        "category": "Yandex Music",
        "title": "Очистить результаты",
        "icon": "$(clear-all)"
      },
      {
        "command": "yandexMusic.addToPlaylist",
        "category": "Yandex Music",
        "title": "Добавить в плейлист"
      },
      {
        "command": "yandexMusic.removeFromPlaylist",
        "category": "Yandex Music",
        "title": "Удалить из плейлиста"
      },
      {
        "command": "yandexMusic.renamePlaylist",
        "category": "Yandex Music",
        "title": "Переименовать плейлист"
      },
      {
        "command": "yandexMusic.deletePlaylist",
        "category": "Yandex Music",
        "title": "Удалить плейлист"
      },
      {
        "command": "yandexMusic.createPlaylist",
        "category": "Yandex Music",
        "title": "Создать плейлист",
        "icon": "$(add)"
      },
      {
        "command": "yandexMusic.openInBrowser",
        "category": "Yandex Music",
        "title": "Открыть в браузере",
        "icon": "$(link-external)"
      }
    ],
    "menus": {
      "view/title": [
        {
          "command": "yandexMusic.refresh",
          "group": "navigation",
          "when": "view == yandex-music-play-lists || view == yandex-music-chart || view == yandex-music-recommendations"
        },
        {
          "command": "yandexMusic.signOut",
          "group": "navigation",
          "when": "view == yandex-music-play-lists && yandexMusic.isAuthorized"
        },
        {
          "command": "yandexMusic.createPlaylist",
          "group": "navigation",
          "when": "view == yandex-music-play-lists && yandexMusic.isAuthorized"
        },
        {
          "command": "yandexMusic.search",
          "group": "navigation",
          "when": "view == yandex-music-search"
        },
        {
          "command": "yandexMusic.clearSearchResult",
          "group": "navigation",
          "when": "view == yandex-music-search && yandexMusic.hasSearchResult"
        }
      ],
      "view/item/context": [
        {
          "command": "yandexMusic.likeTrack",
          "group": "inline@1",
          "when": "viewItem =~ /canlike/"
        },
        {
          "command": "yandexMusic.dislikeTrack",
          "group": "inline@1",
          "when": "viewItem =~ /cannotlike/"
        },
        {
          "command": "yandexMusic.downloadTrack",
          "group": "inline@3",
          "when": "viewItem =~ /track/"
        },
        {
          "command": "yandexMusic.addToPlaylist",
          "when": "viewItem =~ /track/"
        },
        {
          "command": "yandexMusic.removeFromPlaylist",
          "when": "viewItem =~ /in-user/"
        },
        {
          "command": "yandexMusic.renamePlaylist",
          "when": "viewItem =~ /user-playlist/"
        },
        {
          "command": "yandexMusic.deletePlaylist",
          "when": "viewItem =~ /user-playlist/"
        },
        {
          "command": "yandexMusic.openInBrowser",
          "group": "inline@2",
          "when": "viewItem =~ /artist/ || viewItem =~ /album/ || viewItem =~ /playlist/ || viewItem =~ /track/"
        }
      ],
      "commandPalette": [
        {
          "command": "yandexMusic.likeTrack",
          "when": "false"
        },
        {
          "command": "yandexMusic.dislikeTrack",
          "when": "false"
        }
      ]
    },
    "keybindings": [
      {
        "command": "yandexMusic.play",
        "win": "alt+shift+p",
        "mac": "alt+shift+p",
        "linux": "alt+shift+p",
        "when": "!yandexMusic.isPlaying"
      },
      {
        "command": "yandexMusic.pause",
        "win": "alt+shift+p",
        "mac": "alt+shift+p",
        "linux": "alt+shift+p",
        "when": "yandexMusic.isPlaying"
      },
      {
        "command": "yandexMusic.next",
        "win": "alt+shift+n",
        "mac": "alt+shift+n",
        "linux": "alt+shift+n",
        "when": "yandexMusic.isPlaying"
      },
      {
        "command": "yandexMusic.prev",
        "win": "alt+shift+b",
        "mac": "alt+shift+b",
        "linux": "alt+shift+b",
        "when": "yandexMusic.isPlaying"
      },
      {
        "key": "alt+shift+y alt+shift+m",
        "mac": "alt+shift+y alt+shift+m",
        "command": "workbench.view.extension.yandex-music-explorer"
      }
    ],
    "viewsContainers": {
      "activitybar": [
        {
          "id": "yandex-music-explorer",
          "title": "Yandex Music",
          "icon": "resources/yandex-music.svg"
        }
      ]
    },
    "views": {
      "yandex-music-explorer": [
        {
          "id": "yandex-music-play-lists",
          "name": "Плейлисты",
          "message": "message"
        },
        {
          "id": "yandex-music-chart",
          "name": "Чарт"
        },
        {
          "id": "yandex-music-recommendations",
          "name": "Рекомендации"
        },
        {
          "id": "yandex-music-search",
          "name": "Поиск"
        }
      ]
    },
    "viewsWelcome": [
      {
        "view": "yandex-music-search",
        "contents": "Поиск по трекам, альбомам, исполнителям и подкастам. \n[Поиск](command:yandexMusic.search)"
      },
      {
        "view": "yandex-music-play-lists",
        "contents": "Войдите в Яндекс.Музыку чтобы увидеть ваши рекомендации. \n [Войти по токену](command:yandexMusic.signInToken) \n[Войти по логину и паролю](command:yandexMusic.signIn)"
      }
    ]
  },
  "scripts": {
    "vscode:prepublish": "yarn run compile",
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./",
    "pretest": "yarn run compile",
    "test": "node ./out/test/runTest.js",
    "vsix": "vsce package"
  },
  "devDependencies": {
    "@types/glob": "^7.1.1",
    "@types/mocha": "^5.2.7",
    "@types/node": "^12.11.7",
    "@types/vscode": "^1.53.0",
    "@vscode/test-electron": "^2.2.3",
    "glob": "^7.1.5",
    "mocha": "^6.2.2",
    "tslint": "^5.20.0",
    "typescript": "^4.9.4"
  },
  "dependencies": {
    "@electron/get": "^2.0.2",
    "axios": "^0.21.2",
    "extract-zip": "^2.0.1",
    "mobx": "^5.15.4",
    "open": "^7.0.3",
    "yandex-music-client": "0.4.3"
  }
}